﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <title>Gestalt Unit Tests</title>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/gestalt.js"></script>
    <link type="text/css" rel="Stylesheet" href="tests.css" />
</head>
<body>
    <h1>Unit Tests (Slow!)</h1>
    <p>Each row should result in a green 50px x 50px box.  If it doesn't, that means the unit test failed.  Unit tests should be run in all of the major browsers, such as Chrome, Safari, Firefox, and IE8, as well as IE7 mode and IE Quirks mode.</p>
    <div class="testcase">
        <span class="test">
            <xml class="xaml" id="canvas1" width="50" height="50">
              <xaml:Canvas Background="Green" Width="50" Height="50"></xaml:Canvas>
            </xml>
        </span>
        <span class="desc">
            In-line XAML
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <xml class="xaml" width="50" height="50">
              <xaml:Canvas Background="Green" Width="50" Height="50"><TextBlock>First</TextBlock></xaml:Canvas>
            </xml>
        </span>
        <span class="desc">
            In-line XAML with no ID
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <xml class="xaml" width="50" height="50">
              <Canvas Background="Green" Width="50" Height="50"><TextBlock>Second</TextBlock></Canvas>
            </xml>
        </span>
        <span class="desc">
            In-line XAML with no ID (second)
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <xml class="xaml" id="canvas2" width="50" height="50">
              <Canvas x:Name="Canvas2" Background="Red" Width="50" Height="50"></Canvas>
            </xml>
            <script language="python" class="canvas2">
brush = SolidColorBrush()
brush.Color = Colors.Green
            </script>
            <script language="python" class="canvas2">
me.Canvas2.Background = brush
            </script>
        </span>
        <span class="desc">
            In-line XAML with in-line python block sharing state
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <xml class="xaml" id="canvas3" width="50" height="50">
              <Canvas x:Name="Canvas3" Background="Red" Width="50" Height="50"></Canvas>
            </xml>
            <script language="ruby" class="canvas3">
brush = SolidColorBrush.new
brush.Color = Colors.Green
xaml.Canvas3.Background = brush
            </script>
        </span>
        <span class="desc">
            In-line XAML with in-line ruby
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <xml class="xaml" id="canvas4" width="50" height="50" style="display:block">
              <Canvas x:Name="Canvas3" Background="Green" Width="50" Height="50"><TextBlock Foreground="Green">Error!</TextBlock></Canvas>
            </xml>
        </span>
        <span class="desc">
            XML with display:block
        </span>
    </div>
    
    <h1>
      External test cases
    </h1>
    <p>These test cases are loaded as IFRAMEs from external files, to test various per-page configurations</p>
    <div class="testcase">
        <span class="test">
            <iframe height="80" width="80" src="unit.nobody.html"></iframe>
        </span>
        <span class="desc">
            Embedded in a page that has no BODY tag.
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <iframe height="80" width="80" src="unit.python.html"></iframe>
        </span>
        <span class="desc">
            Python only (-py.xap), using text/python
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <iframe height="80" width="80" src="unit.ruby.html"></iframe>
        </span>
        <span class="desc">
            Ruby only (-rb.xap), using text/ruby
        </span>
    </div>
    <div class="testcase">
        <span class="test">
            <iframe height="80" width="80" src="unit.xaml.html"></iframe>
        </span>
        <span class="desc">
            XAML only (-x.xap)
        </span>
    </div>

</body>
</html>